
#ifndef __LPC_TCP_CLIENT_H__
#define __LPC_TCP_CLIENT_H__

#include "../../iocp/IOCP/fileio.h"

extern HIOCPFILE gTcp;
typedef struct __TLS_DATA {
    HANDLE hEvent;
    DWORD dwThreadId;
    unsigned long uSequence;
    void* ppLpcData;
}LPCTLS_DATA, * PLPCTLS_DATA;

void TcpConnect(HIOCPBASE hIocp, SOCKADDR_IN* pRemote);
void TcpClose();

PLPCTLS_DATA TcpGetLpcData(DWORD dwThreadId, BOOL bExist);
void TcpThreadDetach(DWORD dwThreadId);
void TcpReleaseLpcData();

#endif